<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>微访谈</title>
    <base href="<?php echo base_url(); ?>"/>
    <link href="style/base.css" rel="stylesheet" type="text/css" />
    <link href="style/common.css" rel="stylesheet" type="text/css" />
    <link href="style/zhanshi.css" rel="stylesheet" type="text/css" />
    <link href="style/star.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="js/jquery.enplaceholder.js"></script>
    <!--[if IE 6]>
    <script type="text/javascript" language="javascript" src="js/ie6/DD_belatedPNG_0.0.8a-min.js"></script>
    <script type="text/javascript" language="javascript">
        DD_belatedPNG.fix('.logo img,.footer_logo img');
    </script>
    <![endif]-->
</head>

<body style="background: none repeat scroll 0 0 #DDDDDD;font-size: 14px;">
<input type="hidden" value="uid" id="<?php if(isset($this->session->userdata ['id'])) echo (int)$this->session->userdata ['id']; else echo 0;?>" />
<!-- head S-->
<?php
include 'header.php';
?>
<!-- head E-->
<!-- 名片 S -->
<?php
include 'person_info.php';
?>
<!-- 名片 E -->
<!-- 选项卡 S -->
<?php
include 'home_nav.php';
?>
<!-- 选项卡 E -->

<!-- 微访谈 S -->
<?php if(!empty($girlContent[0])){?>

    <!-- 活动文章内页 S -->
    <div class="star_page2 clearfix">
        <!--main S-->
        <div class="star_page_main">
            <!--浮动分享-->
            <div class="floatshare">
                <!-- JiaThis Button BEGIN -->
                <div class="jiathis_share_slide jiathis_share_32x32" id="jiathis_share_slide" style="margin-left: -60px;">
                    <div class="jiathis_share_slide_top" id="jiathis_share_title"></div>
                    <div class="jiathis_share_slide_inner">
                        <div class="jiathis_style_32x32">
                            <a class="jiathis_button_qzone"></a>
                            <a class="jiathis_button_tsina"></a>
                            <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
                            <script type="text/javascript">
                                var jiathis_config = {data_track_clickback:'true'
                                    ,slide:{
                                        divid:'jiathis_main',
                                        pos:'left'
                                    }
                                };
                            </script>
                            <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1365343082402503" charset="utf-8"></script>
                            <script type="text/javascript" src="http://v3.jiathis.com/code/jiathis_slide.js" charset="utf-8"></script>
                        </div></div></div>
                <!-- JiaThis Button END -->
            </div>
            <!--文章内容 S-->
            <div class="star_page_article">
                <h3 class="spa_tit"><?php echo $girlContent[0]['title'];?></h3>
                <div class="spa_msg">
                    <span class="spa_date"><?php echo date('Y年m月d日',$girlContent[0]['create_time']);?>   星探麻豆</span>
                    <!--<div class="spa_share">
                        <img src="images/btn_share_qq.png" /> <img src="images/btn_share_weibo.png" /> 手机用户…等1人分享过
                    </div>-->
                </div>
                <div class="spa_body">
                    <?php echo $girlContent[0]['content'];?>
                    <div class="spa_vote">
                        <h4><?php echo $user['realname'];?><span>为我投票吧</span></h4>
                        <a href="javascript:;" class="btn_vote" onclick="vote(<?php if(isset($_GET['id'])) echo $_GET['id']; else echo $this->session->userdata ['id'];?>,<?php echo $girlContent[0]['id'];?>,this)"><span><?php echo $user['voteCount']?>票</span></a>
                    </div>
                </div>

                <div class="spa_msg2">
                    <div class="spa_zan">
                        <!-- JiaThis Button BEGIN -->
                        <div class="jiathis_style">
                            <a class="jiathis_like_tsinat" data="width=320"></a>
                        </div>
                        <script type="text/javascript">
                            var jiathis_config = {data_track_clickback:'true'};
                        </script>
                        <script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1365343082402503" charset="utf-8"></script>
                        <!-- JiaThis Button END -->
                    </div>
                    <div class="spa_share2">
                        <!-- JiaThis Button BEGIN -->
                        <div class="jiathis_style_24x24">
                            <a class="jiathis_button_qzone"></a>
                            <a class="jiathis_button_tsina"></a>
                            <a class="jiathis_button_tqq"></a>
                            <a class="jiathis_button_weixin"></a>
                            <a class="jiathis_button_renren"></a>
                            <a href="http://www.jiathis.com/share?uid=1928977" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
                            <a class="jiathis_counter_style"></a>
                        </div>
                        <script type="text/javascript">
                            var jiathis_config = {data_track_clickback:'true'};
                        </script>
                        <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1365343082402503" charset="utf-8"></script>
                        <!-- JiaThis Button END -->
                    </div>
                </div>
            </div>
            <!--文章内容 E-->

            <!--评论 S-->
            <div class="star_page_comment">
                <!-- UY BEGIN -->
                <div id="uyan_frame"></div>
                <script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js"></script>
                <!-- UY END -->

            </div>
            <!--评论 E-->
        </div>
        <!--main E-->
    </div>
    <!-- 活动文章内页 E -->

<?php }else{ ?>


    <div class="w1100">
        <div class="weifangtan">
            <p class="txt">暂无微访谈，如需报名请点击查看</p>
            <div class="btn2">
                <a class="btn_wft_lj" href="index.php/interview/apply">了解微访谈</a>
                <a class="btn_wft_bm" href="index.php/interview/apply">报名微访谈</a>
            </div>
        </div>
    </div>

<?php }?>

<!-- 微访谈 E -->

<!-- 登录 S-->
<div class="login_zc login_zc_bg2" id="login_zc" <?php if (isset($this->session->userdata['id'])) { ?> style="display: none;" <?php }?>>
    <div class="login_zc_inner">
        <div class="form">
            <form action="" method="">
                <input type="text" class="form_text ph" placeholder="手机号/邮箱" value="" />
                <input type="password" class="form_text ph" placeholder="登录密码" value="" />
                <input type="submit" class="form_login" value="登 录" />
                <a href="" class="btn_regedit">注 册</a>
            </form>
        </div>
        <ul>
            <li class="btn_login_weibo"><a href="#" >微博账号登录</a></li>
            <li class="btn_login_qq"><a href="#">QQ账号登录</a></li>
            <li class="txt"><img src="images/txt_zcjks.png" /></li>
        </ul>
        <a href="javascript:void(0)" class="btn_close" id="login_close"></a>
    </div>
</div>
<!-- 登录 E-->

<!-- 底部 S -->
<?php include 'footer.php'; ?>
<!-- 底部 E -->
<script type="text/javascript">
    // 文本框placeholder效果,给input加上类ph,使其支持placeholder效果
    $(function(){
        $('input.ph').placeholder({isUseSpan:true});
    })

    // 登陆条固定效果
    $(function(){
        if($("#login_zc").length>0 && ($("#login_zc").css("display")!="none")){
            $("body").css("padding-bottom","135px");
        }

        $("#login_close").click(function(){
            $("#login_zc").hide();
            $("body").css("padding-bottom","0");
        })
    })
    function vote(id,interview,obj)
    {
        if(!id || !interview){
            alert('参数错误');
            return ;
        }

        var params = {id:id,interview:interview};
        $.ajax({
            type:"post",
            url:"index.php/login/ajaxVote",
            dataType:"json",
            data:params,
            success:function(data){
                var html = '';
               if(data.statusCode!=1){
                   alert(data.msg);
               }else{
                   html = $(obj).children('span').html();
                   if(html){
                       $(obj).children('span').html(parseInt(html)+1);
                   }

                   alert(data.msg);
               }
            }
        });
    }
</script>
</body>
</html>
